import { mapState, mapActions } from "vuex";
import { baseFileds } from "../options";
export default {
  data() {
    return {};
  },
  computed: {
    ...mapState("options", ["personList"]),
    fileds() {
      return baseFileds(
        "complate",
        this.formData.publishScope,
        this.personList,
        this.receiptStatus
      );
    },
    subFileds() {
      return this.type === "detail"
        ? []
        : [
            {
              key: "auditMemo",
              filedType: "Input",
              label: "审批意见",
              span: 24,
              props: {
                placeholder: "请输入审批意见",
                type: "textarea",
                rules: [
                  {
                    required: true,
                    message: "请输入审批意见",
                    trigger: "blur",
                  },
                ],
              },
            },
          ];
    },
  },
  //
  created() {
    this.getPerson();
  },
  methods: {
    ...mapActions("options", ["getPerson"]),
  },
};
